Skip to content

Await cancelation of sending_task in _stream_stream to prevent writing on closed stream.#183

Open
zachary-walravens wants to merge 1 commit intobetterproto:mainfrom
zachary-walravens:main
Open

Await cancelation of sending_task in _stream_stream to prevent writing on closed stream.#183
zachary-walravens wants to merge 1 commit intobetterproto:mainfrom
zachary-walravens:main

Conversation

@zachary-walravens
Copy link

Summary

It fixes this issue I created here #182

Essentially, stream_stream doesn't await the cancelation of sending_task when an exception is raised. This allows for an edge case where sending_task tries to send messages on a closed stream, leading to an http error that closes all streams on that channel.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
    • This change has an associated test.
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant